package ${daoUrl};


import com.erayt.solar.QueryParam;
import com.erayt.solar.db.query.SolarPage;
import ${entityUrl}.${entityName};
import ${voUrl}.${entityName}Vo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
* @description: ${entityComment}DAO层
* @company: erayt
* @author ${author}
* @date: ${createTime}
*/
public interface ${entityName}Mapper{

    /**
    * 分页查询
    * @param queryParam
    * @return
    */
    SolarPage<${entityName}Vo> queryPageByParam(@Param("queryParam") QueryParam queryParam);

    /**
    * 根据主键查询
    * @param primaryKey
    * @return
    */
    ${entityName}Vo selectByPrimaryKey(@Param("primaryKey") String primaryKey);

    /**
     * 查询全部数据
     * @return
     */
    List<${entityName}Vo> selectAllData();


    /**
    * 插入数据
    * @param record
    * @return
    */
    int insert(@Param("record") ${entityName} record);

    /**
     * 批量插入
     * @param map
     */
    void batchInsert(@Param("map") Map map);


    /**
    * 根据主键删除
    * @param primaryKey
    * @return
    */
    int deleteByPrimaryKey(@Param("primaryKey") String primaryKey);

    /**
    * 根据主键更改
    * @param record
    * @return
    */
    int updateByPrimaryKey(@Param("record") ${entityName} record);


}
	